//
//  UserModel.h
//  Penetration
//
//  Created by lwx on 17/5/4.
//  Copyright © 2017年 Lwx. All rights reserved.
// 杜文杰

#import <Foundation/Foundation.h>

@interface UserModel : NSObject<NSCoding, NSCopying>
@property (nonatomic, strong)NSString *age;         /**<年龄*/

@property (nonatomic, strong)NSString *token;       /**<*/
@property (nonatomic, strong)NSString *member_id;   /**<用户id*/
@property (nonatomic, strong)NSString *phone;       /**<电话号码*/
@property (nonatomic, strong)NSString *nickname;    /**<昵称*/
@property (nonatomic, strong)NSString *avatar;      /**<头像*/
@property (nonatomic, strong)NSNumber *sex;         /**<性别  1男2女*/

- (void)setIntance:(UserModel *)model;

//获取当前用户
+ (instancetype)intance;

//退出登录，销毁单例
+ (void)attempDealloc;

//保存登录
+ (void)saveLogin;

//删除保存记录
+ (void)deleteLogin;

//是否有保存数据,有则获取。
+ (BOOL)isSaveLogin;

//只判断，不获取
+ (BOOL)isSaveLoginNotGet;

@end
